//
//  AWP2PNoticeMessage.m
//  AtWork2
//
//  Created by lucas on 15/6/29.
//  Copyright (c) 2015年 Foreveross. All rights reserved.
//

#import "AWP2PNoticeMessage.h"

static inline AWP2PNoticeMessageOperation parseP2PNoticeMessageOperation(NSString *operation) {
    if ([operation.uppercaseString isEqualToString:AWMessageKOperationRefreshContact]) {
        return AWP2PNoticeMessageOperationRefreshContact;
    }
    return NSNotFound;
}

@implementation AWP2PNoticeMessage

- (AWP2PNoticeMessageOperation)operation {
    return parseP2PNoticeMessageOperation([self bodyValueForKey:AWMessageKOperation]);
}

@end
